<script>
  history.pushState(null, null, '?a=check');
  history.pushState(null, null, '?a=login');
  history.replaceState(null, null, '?p=1');
</script>